Skip to content

Conversation

oscarba
Copy link
Member

@oscarba oscarba commented Nov 7, 2026

Closes #35

What

  • Filters for type, country, grapes, food pairing, minimum rating and alcohol, with several values per group
  • Sorting by top rated, most rated, name and alcohol, always on the whole result
  • Removable active filters and "Nullstill filtre"
  • Native dialog for the filters on small screens
  • All choices in the URL, and the back button undoes the last choice
  • Countries in Norwegian on the wine cards

Backend

filterOptions now takes search and filter, and returns grapes and harmonize.
The backend on the VM must be updated and restarted, or the filter panel shows
"Vi fikk ikke hentet filtrene". Search still works without it.

Testing

  • 233 frontend tests, 24 backend tests and 50 e2e tests pass, and the coverage limits pass
  • Tested the whole stack with real SQL on X-Wines Test

Known issues

  • The counts are slow on large data: about 6 s in total on 100 000 wines in PGlite, which is slower than real PostgreSQL. To be solved with the dataset issue
  • JavaScript on the landing page is 155.05 kB, over the 150 kB budget

Oscar Bakkeng and others added 3 commits November 7, 2026 18:58
filterOptions now takes the search and the filters, and returns grapes
and food pairings as well. Each group leaves out its own filter, so the
other values show what they would add. Only requested groups are counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Several values can be selected, and all choices live in the URL. On small
screens the filters open in a native dialog. Active filters can be removed
one by one, and the back button undoes the last choice. Wine cards now show
countries in Norwegian.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oscarba oscarba requested a review from a team as a code owner November 7, 2026 18:01
@oscarba oscarba merged commit f3a01e9 into dev-frontend Nov 7, 2026
@oscarba oscarba deleted the 35-filter-sort branch November 7, 2026 18:02
@oscarba oscarba linked an issue Nov 7, 2026 that may be closed by this pull request
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filtering & sorting
1 participant